/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package validacao.teste;

import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.parsers.ParserConfigurationException;
import validacao.ConfigValidacaoSemantica;
import validacao.GerenciadorSemantico;

/**
 *
 * @author Emanoel
 */
public class TesteGerenciadorSemantico {
    
    public static void main(String[] args){
        try {
            ArrayList<ConfigValidacaoSemantica> configs = GerenciadorSemantico.carregarDefinicoesDB();
            for(int i = 0; i < configs.size(); i++){
                System.out.println(configs.get(i).getName());
                for (int j = 0; j < configs.get(i).getColumns().size(); j++) {
                    System.out.println(configs.get(i).getColumns().get(j));
                }
            }
        } catch (ParserConfigurationException ex) {
            Logger.getLogger(TesteGerenciadorSemantico.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(TesteGerenciadorSemantico.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

}
